<!DOCTYPE html>
<html lang="en">
  <head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="">
	<meta name="author" content="">
	<link rel="shortcut icon" href="/favicon.ico">

	<title>Music parser | Home</title>

	<!-- Bootstrap core CSS -->
	<link href="css/bootstrap.css" rel="stylesheet">

	<!-- Custom styles for this template -->
	<link href="navbar-static-top.css" rel="stylesheet">

	<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!--[if lt IE 9]>
	  <script src="js/html5shiv.js"></script>
	  <script src="js/respond.min.js"></script>
	<![endif]-->
  </head>

  <body>

	<!-- Static navbar -->
	<div class="navbar navbar-default navbar-static-top">
	  <div class="container">
		<div class="navbar-header">
		  <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
		  </button>
		  <a class="navbar-brand" href="#">Music parser</a>
		</div>
		  <ul class="nav navbar-nav navbar-right">
			<li class="active"><a href="#">Home</a></li>
			<li><a href="about">About</a></li>
			<li><a href="artists">Artists</a></li>
			<li><a href="tracks">Tracks</a></li>
		  </ul>
		</div><!--/.nav-collapse -->
	  </div>
	</div>


	<div class="container">

	  <!-- Main component for a primary marketing message or call to action -->
	  <div class="jumbotron">
		<h1>Music parser</h1>
		<p>Test Automation Preparation Q1-2014. (Date was fixed!!! =))))</p>
		<p>This example is a quick exercise to illustrate how Python, XML, XSL, XSD and MySQL can work together. We parse Last.fm, BBC, Itunes and airplay charts to find new music every day.</p>
	  </div>

		<!-- The most added images -->
		<!-- TODO: replace mock with real functionality -->
		<img src="http://userserve-ak.last.fm/serve/126/93158109.png" alt="trackname" class="img-thumbnail">
		<img src="http://userserve-ak.last.fm/serve/126/93681345.png" alt="trackname" class="img-thumbnail">
		<img src="http://userserve-ak.last.fm/serve/126/87338269.png" alt="trackname" class="img-thumbnail">
		<img src="http://userserve-ak.last.fm/serve/126/88340753.png" alt="trackname" class="img-thumbnail">
		
		<br/>
		
		<!-- Search in DB for track or artist -->
		<!-- TODO: replace mock with real functionality -->
		<form class="navbar-form navbar-left" role="search" method="get" action="/">
			<div class="form-group">
				<input name="query" id="query" type="text" class="form-control" placeholder="Search for track or artist">
			</div>
			<button type="submit" class="btn btn-success" alt="search"><span class="glyphicon glyphicon-search"></span> Search</button>
		</form>
		</br>

            <!-- Table -->
            <div class="navbar-default">
                </br></br><b> Search Results </b>
                <table class="table">
                    <tr>
                        <th><b> Track </b></th>
                        <th><b> Artist </b></th>
                        <th><b> Cover </b></th>
                        <th><b> Links </b></th>
                    </tr>
                    <#list searchResults as searchResults>
                    <tr>
                        <td>

                            <ul>
                                <li>${searchResults.getName()}</li>
                            </ul>

                        </td>
                        <td>
                            ${searchResults.getArtistName()}
                        </td>
                        <td>
                            <img src="${searchResults.getImageURL()}"  class="img-thumbnail">
                        </td>
                        <td>
                            <a href="http://music.yandex.ru/?ncrnd=2965#!/search?text=${searchResults.getName()}" title="Play via music.yandex.ru"><img src="http://www.google.com/s2/favicons?domain=music.yandex.ru"></a>
                            	    <a href="http://www.last.fm/search?q=${searchResults.getName()}" title="Play via last.fm"><img src="http://www.google.com/s2/favicons?domain=last.fm"></a>
                            	    <a href="http://grooveshark.com/#!/search?q=${searchResults.getName()}" title="Play via grooveshark"><img src="http://www.google.com/s2/favicons?domain=grooveshark.com"></a>
                        </td>
                    </tr>
                    </#list>
                </table>

	</div> <!-- /container -->


	<!-- Bootstrap core JavaScript
	================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="js/jquery.js"></script>
	<script src="js/bootstrap.min.js"></script>
  </body>
</html>
